<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                template="../WEB-INF/templates/frontend.xhtml"
                xmlns:p="http://primefaces.prime.com.tr/ui">
    <ui:param name="title" value="Dashboard"/>
    <ui:define name="content">

        <div id="left">

            <ui:include src="../WEB-INF/components/followers.xhtml" />

            <h:form id="form" enctype="multipart/form-data" prependId="false">
                <p:growl id="upload-message" />
                <p:fileUpload fileUploadListener="#{fileUploadController.processFileUpload}" id="documentToUpload"
                              allowTypes="*.jpg;*.png;*.gif;" description="Images" update="upload-message" />
            </h:form>

        </div>
        <div id="right">
            <ui:include src="../WEB-INF/components/status.xhtml" />
            <h:panelGroup layout="block" id="messages">
                <h3>Status updates</h3>
                <ui:repeat value="#{dashboardBean.messages}" var="message">
                    <ui:include src="../WEB-INF/components/message.xhtml">
                        <ui:param name="message" value="#{message}"/>
                    </ui:include>
                </ui:repeat>
            </h:panelGroup>
        </div>

    </ui:define>
</ui:composition>